[%#
  # IMPORTANT NOTE
  #   This documentation is generated automatically from source
  #   templates.  Any changes you make here may be lost.
  # 
  #   The 'docsrc' documentation source bundle is available for download
  #   from http://www.template-toolkit.org/docs.html and contains all
  #   the source templates, XML files, scripts, etc., from which the
  #   documentation for the Template Toolkit is built.
-%]
[% META book = 'Modules'
        page = 'Constants'
%]
[%  WRAPPER toc;
	PROCESS tocitem 
	        title ="SYNOPSIS"
                subs  = [];
	PROCESS tocitem 
	        title ="DESCRIPTION"
                subs  = [];
	PROCESS tocitem 
	        title ="EXPORTABLE TAG SETS"
                subs  = [];
	PROCESS tocitem 
	        title ="AUTHOR"
                subs  = [];
	PROCESS tocitem 
	        title ="VERSION"
                subs  = [];
	PROCESS tocitem 
	        title ="COPYRIGHT"
                subs  = [];
	PROCESS tocitem 
	        title ="SEE ALSO"
                subs  = [];
    END
%]
<!-- Pod to HTML conversion by the Template Toolkit version 2 -->
[% WRAPPER section
    title="SYNOPSIS"
-%]<pre>    use Template::Constants qw( :status :error :all );</pre>
[%- END %]
[% WRAPPER section
    title="DESCRIPTION"
-%]<p>
The Template::Constants modules defines, and optionally exports into the
caller's namespace, a number of constants used by the Template package.
</p>
<p>
Constants may be used by specifying the Template::Constants package 
explicitly:
</p>
<pre>    use Template::Constants;</pre>
<pre>    print Template::Constants::STATUS_DECLINED;</pre>
<p>
Constants may be imported into the caller's namespace by naming them as 
options to the <code>'use Template::Constants'</code> statement:
</p>
<pre>    use Template::Constants qw( STATUS_DECLINED );</pre>
<pre>    print STATUS_DECLINED;</pre>
<p>
Alternatively, one of the following tagset identifiers may be specified
to import sets of constants; :status, :error, :all.
</p>
<pre>    use Template::Constants qw( :status );</pre>
<pre>    print STATUS_DECLINED;</pre>
<p>
See [% ttlink('Exporter') -%] for more information on exporting variables.
</p>
[%- END %]
[% WRAPPER section
    title="EXPORTABLE TAG SETS"
-%]<p>
The following tag sets and associated constants are defined: 
</p>
<pre>  :status
    STATUS_OK                 # no problem, continue
    STATUS_RETURN             # ended current block then continue (ok)
    STATUS_STOP               # controlled stop (ok) 
    STATUS_DONE               # iterator is all done (ok)
    STATUS_DECLINED           # provider declined to service request (ok)
    STATUS_ERROR              # general error condition (not ok)</pre>
<pre>  :error
    ERROR_RETURN              # return a status code (e.g. 'stop')
    ERROR_FILE                # file error: I/O, parse, recursion
    ERROR_UNDEF               # undefined variable value used
    ERROR_PERL                # error in [% tt_start_tag %] PERL [% tt_end_tag %] block
    ERROR_FILTER              # filter error
    ERROR_PLUGIN              # plugin error</pre>
<pre>  :chomp                      # for PRE_CHOMP and POST_CHOMP
    CHOMP_NONE                # do not remove whitespace
    CHOMP_ONE                 # remove whitespace to newline
    CHOMP_ALL                 # old name for CHOMP_ONE (deprecated)
    CHOMP_COLLAPSE            # collapse whitespace to a single space
    CHOMP_GREEDY              # remove all whitespace including newlines</pre>
<pre>  :debug
    DEBUG_OFF                 # do nothing
    DEBUG_ON                  # basic debugging flag
    DEBUG_UNDEF               # throw undef on undefined variables
    DEBUG_VARS                # general variable debugging
    DEBUG_DIRS                # directive debugging
    DEBUG_STASH               # general stash debugging
    DEBUG_CONTEXT             # context debugging
    DEBUG_PARSER              # parser debugging
    DEBUG_PROVIDER            # provider debugging
    DEBUG_PLUGINS             # plugins debugging
    DEBUG_FILTERS             # filters debugging
    DEBUG_SERVICE             # context debugging
    DEBUG_ALL                 # everything
    DEBUG_CALLER              # add caller file/line info
    DEBUG_FLAGS               # bitmap used internally</pre>
<pre>  :all         All the above constants.</pre>
[%- END %]
[% WRAPPER section
    title="AUTHOR"
-%]<p>
Andy Wardley &lt;abw@wardley.org&gt;
</p>
<p>
[% ttlink('http://wardley.org/', 'http://wardley.org/') -%]
</p>
[%- END %]
[% WRAPPER section
    title="VERSION"
-%]<p>
2.74, distributed as part of the
Template Toolkit version 2.19, released on 27 April 2007.
</p>
[%- END %]
[% WRAPPER section
    title="COPYRIGHT"
-%]<pre>  Copyright (C) 1996-2007 Andy Wardley.  All Rights Reserved.</pre>
<p>
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
</p>
[%- END %]
[% WRAPPER section
    title="SEE ALSO"
-%]<p>
[% ttlink('Template', 'Template') -%], [% ttlink('Exporter', 'Exporter') -%]
</p>
[%- END %]



